package com.oa.bean.work;

import java.util.Date;
import java.util.Set;

// 请/休假管理表
public class Leave {
	private int lid;// 休/请假编号
	private int eid;// 员工编号
	private String ltypename;// 请假类型
	private Date lstarttime;// 开始时间
	private int lcount;// 请假天数
	private String lreason;// 请假理由
	private Date lcreattime;// 创建时间
	private String lstatus;// 审批状态

	private Set<Emp> emps;// 同一时间多个员工请假

	public Leave() {
	}

	public Leave(int lid, int eid, String ltypename, Date lstarttime, int lcount, String lreason, Date lcreattime,
			String lstatus) {
		super();
		this.lid = lid;
		this.eid = eid;
		this.ltypename = ltypename;
		this.lstarttime = lstarttime;
		this.lcount = lcount;
		this.lreason = lreason;
		this.lcreattime = lcreattime;
		this.lstatus = lstatus;
	}

	public int getLid() {
		return lid;
	}

	public void setLid(int lid) {
		this.lid = lid;
	}

	public int getEid() {
		return eid;
	}

	public void setEid(int eid) {
		this.eid = eid;
	}

	public String getLtypename() {
		return ltypename;
	}

	public void setLtypename(String ltypename) {
		this.ltypename = ltypename;
	}

	public Date getLstarttime() {
		return lstarttime;
	}

	public void setLstarttime(Date lstarttime) {
		this.lstarttime = lstarttime;
	}

	public int getLcount() {
		return lcount;
	}

	public void setLcount(int lcount) {
		this.lcount = lcount;
	}

	public String getLreason() {
		return lreason;
	}

	public void setLreason(String lreason) {
		this.lreason = lreason;
	}

	public Date getLcreattime() {
		return lcreattime;
	}

	public void setLcreattime(Date lcreattime) {
		this.lcreattime = lcreattime;
	}

	public String getLstatus() {
		return lstatus;
	}

	public void setLstatus(String lstatus) {
		this.lstatus = lstatus;
	}

	public Set<Emp> getEmps() {
		return emps;
	}

	public void setEmps(Set<Emp> emps) {
		this.emps = emps;
	}

	@Override
	public String toString() {
		return "Leave [lid=" + lid + ", eid=" + eid + ", ltypename=" + ltypename + ", lstarttime=" + lstarttime
				+ ", lcount=" + lcount + ", lreason=" + lreason + ", lcreattime=" + lcreattime + ", lstatus=" + lstatus
				+ "]";
	}

}
